﻿<%@ Page AutoEventWireup="true" CodeBehind="Admin_ArticleComment.aspx.cs" Inherits="V5_EShop.Admin.Article.Admin_ArticleComment"
    Language="C#" MasterPageFile="~/Includes/AdminMaster.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="title">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="content">
    <table cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="headertext">
                位置导航：<a class="list_link" href="<%=this.ResolveUrl("~/") %>Admin/Admin_Index_Main.aspx"
                    target="main">首页</a> >> 文章评论管理
            </td>
        </tr>
        <tr>
            <td>
                <span class="back"><a href="?>">管理首页</a></span>
            </td>
        </tr>
    </table>
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                OnRowCommand="gvList_RowCommand" CssClass="tablelist overlist rowlist tableheader">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField HeaderStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                        <HeaderTemplate>
                            <input id="chkAll" onclick="selectedAll(this);" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" CssClass="checkitem" />
                            <asp:HiddenField ID="hfID" runat="server" Value='<%#Eval("ID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="编号">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="文章名称">
                        <ItemTemplate>
                            <%# Bind_Article(Eval("ArticleID"))["Title"]%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评论者">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("CommentName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# Bind_IsShow(DataBinder.Eval(Container.DataItem, "IsShow"))%>
                        </ItemTemplate>
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Bind("ID") %>'
                                CommandName="go">修改</asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Bind("ID") %>'
                                CommandName="del" OnClientClick="return confirm('你确定要删除吗?');">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table class="tablelist rowlist" cellpadding="0" cellspacing="0">
                <tr class="headertext">
                    <td colspan="2">
                        评论回复
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        文章标题：
                    </td>
                    <td>
                        <asp:Label ID="lblArticleTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        评论者：
                    </td>
                    <td>
                        <asp:Label ID="lblCommentName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        评论内容：
                    </td>
                    <td>
                        <asp:Label ID="lblCommentContent" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        管理回复：
                    </td>
                    <td>
                        <asp:TextBox ID="txtReplayContent" runat="server" Height="115px" TextMode="MultiLine"
                            Width="404px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        评论IP：
                    </td>
                    <td>
                        <asp:Label ID="lblCommentIP" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        评论时间：
                    </td>
                    <td>
                        <asp:Label ID="lblCommentTime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        审核状态：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rbtnPassed" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="0">未通过</asp:ListItem>
                            <asp:ListItem Value="1">通过</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="确定" OnClick="btnSave_Click" CssClass="ds-btn ds-btn-ok" />
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
